home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / RCOLORTB.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  34 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   RCOLORTB.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NBT1.INC"
  19. COLOR 7, 0
  20. CLS
  21.  
  22. ? "┌──────────────────────────────────────────────────────────────────────────
  23. ? "│ TBoxCOLOR2 ( Row?, Col?, Rows?, Cols?, Oattr?, Nattr? )
  24. ? "├──────────────────────────────────────────────────────────────────────────
  25. ? "│ Very simply put, TBoxCOLOR2 replaces any occurrence of Oattr? with Nattr?
  26. ? "│ inside the box. All other attributes and the characters are not affected.
  27. ? "└──────────────────────────────────────────────────────────────────────────
  28.  
  29. TBoxFILL 7,  1, 19, 80, 88, 79        ' hi-white X's on red background
  30. TBoxFILL 9, 21, 10, 40, 65, 16        ' black A's on blue background
  31. DELAY 2                               ' pause for effect
  32. TBoxCOLOR2 1, 1, 25, 80, 79, 112     ' change X's to black on white
  33. DELAY 2                               ' more effect
  34. TBoxCOLOR2 1, 1, 25, 80, 16, 7       ' change A's to white on black